package com.mapper;

import java.util.List;

import com.bean.PurchaseOrder;

public interface PurchaseOrderMapper {
    int deleteByPrimaryKey(Integer purchaseOrderId);

    int insert(PurchaseOrder record);

    int insertSelective(PurchaseOrder record);

    PurchaseOrder selectByPrimaryKey(Integer purchaseOrderId);

    int updateByPrimaryKeySelective(PurchaseOrder record);

    int updateByPrimaryKey(PurchaseOrder record);

	int updateByExame(PurchaseOrder p);

	List<PurchaseOrder> selectByState(int state);
	
	List<PurchaseOrder> selectBySupplierId(int supplierId);
	
	List<PurchaseOrder> selectByStateAndSupplierId(PurchaseOrder record);
	
	List<PurchaseOrder> selectByFinish(int finish);

	List<PurchaseOrder> selectAll();
	
	
	/**
	 * 确认发货
	 * @param record
	 * @return
	 */
	int updateBySend(PurchaseOrder record);
	
	
	/**
	 * 确认收货
	 * @param record
	 * @return
	 */
	int updateByReceive(PurchaseOrder record);
}